Skip to main content
Version: 1.0.2

Get Supported Currency

The Get Supported Currency API enables to fetch and show the list of currencies supported by VISA.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Payload Parameters
ParameterDescription

id

Mandatory

String

Unique ID for each request

jsonrpc

Mandatory

String

JSON RPC VERSION - should be "2.0"

method

Mandatory

String

Method Name - should be "VisaService.GetSupportedCurrency"

params

Mandatory

Object

api

Mandatory

Object

credential

Mandatory

String

API credential provided by NetXD

signature

Mandatory

String

Signature of the digitally signed payload

payload

Mandatory

Object


curl --location --globoff '{{URL}}/jsonrpc' \
--header 'Content-Type: application/json' \
--data '{"id":"1","jsonrpc":"2.0","method":"VisaService.GetSupportedCurrency","params":{"api":{"credential":"Basic c3VwcG9ydCsxQG5ldHN5cy1pbmMuY29tOjM5ZDYxOGJkNTVmNzQ4ZGQ4ZWY4NWI5NWQxY2RlNDE5","signature":"{{signature}}"},"payload":{}}}'

Body


{
"id": "1",
"jsonrpc": "2.0",
"method": "VisaService.GetSupportedCurrency",
"params": {
"api": {
"credential": "Basic c3VwcG9ydCsxQG5ldHN5cy1pbmMuY29tOjM5ZDYxOGJkNTVmNzQ4ZGQ4ZWY4NWI5NWQxY2RlNDE5",
"signature": "{{signature}}"
},
"payload": {}
}
}

Response: 201

Response Parameters
ParameterDescription

jsonrpc

String

JSON RPC VERSION – should be "2.0"

Example – "2.0"

result

Object

supportedCurrencies

Object

AED

Object

currencyIsoCode

Number

Numeric ISO 4217 code for the currency

Example – 784

currencyAlphaCode

String

ISO 4217 alpha code (three-letter alphabetic code) for the currency

Example – "AED"

currencyName

String

Name of the currency

Example – "UAE DIRHAM"

decimalPositions

Number

Number of decimal places used for the currency

Example – 2

supportedCountries

Object

Albania

Object

countryName

String

Name of the country associated with the currency

Example – "Albania"

countryCode

String

ISO 3166-1 alpha-2 code (two-letter alphabetical code) for the country

Example – "AL"

countryCodeIso3

String

ISO 3166-1 alpha-3 code (three-letter alphabetical code) for the country

Example – "ALB"

id

String

Unique ID of the request

Example – "1"


{
"jsonrpc": "2.0",
"result": {
"supportedCurrencies": {
"AED": {
"currencyIsoCode": 784,
"currencyAlphaCode": "AED",
"currencyName": "UAE DIRHAM",
"decimalPositions": 2
}
},
"supportedCountries": {
"Albania": {
"countryName": "Albania",
"countryCode": "AL",
"countryCodeIso3": "ALB"
}
},
"id": "1"
}
}